class intprime
{
public static void main(String[] args)
{
int i=0, p=0,count,num;
while(i<1000)	
{
	num=i;
	count=0;
	for(int x=1;x<num && count<=1;x++)
		if(num%x==0)
	count++;
	if(count<=1)
	p++;
	}
System.out.println("The number of prime numbers inbetween 0 and 1000 is " + p);
}
}